<div class="widget-title">
  <h3>
    <span>{{widget_title}}</span>
  </h3>      
</div>
<div class="widget-content">
  <form role="form" class="form-horizontal" name="form"  ng-submit="update(employee_certificate)">
    <div class="control-group">
      <label class="control-label">证书类型</label>
      <div class="controls">
        <select ng-model="employee_certificate.certificate_id" required>
          <option ng-repeat="c in certificates" value="{{c.id}}">{{c.name}}</option>
        </select>
      </div>
    </div>

    <div class="control-group">
      <label class="control-label">证书编号</label>
      <div class="controls">
        <input type="text" ng-model="employee_certificate.number" placeholder="必填项" required />  
      </div>
    </div>

    <div class="control-group">
      <label class="control-label"> 领证时间</label>
      <div class="controls">            
        <input type="text" readonly='true' onclick="WdatePicker({onpicked: function(){$(this).trigger('change')}});" ng-model="employee_certificate.valid_from" placeholder="必填项" required class="input-time"/>  
      </div>         
    </div>

    <div class="form-actions">          
        <input type="submit" class="btn bg-green" value="保存" />     
        <input type="submit" class="btn btn-default" value="取消" />         
    </div>
  </form>
</div>
